package com.a2020111222.test.factory;

import com.a2020111222.test.pojo.user;

/**
 * @author Administrator
 * @version 1.0
 * @description: TODO
 * @date 2022/11/5 22:46
 */
public class myUserFactory {
    public myUserFactory(){
        System.out.println("实例化进行中");
    }

    /**
     * @description:  静态工厂实例化
     * @param: []
     * @return: com.a2020111222.test.pojo.user
     * @author Yang
     * @date: 2022/11/6 16:09
     */
    public static user createUser(){
        return new user();
    }

    /**
     * @description:  实例工厂实例化
     * @param: []
     * @return: com.a2020111222.test.pojo.user
     * @author Yang
     * @date: 2022/11/6 16:10
     */
    public user createUser_2(){
        return new user();
    }
}
